home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / Vk / VkModel.z / VkModel
Text File  |  1998-10-20  |  5KB  |  133 lines

  1.  
  2.  
  3.  
  4. VVVVkkkkMMMMooooddddeeeellll((((3333xxxx))))                                                        VVVVkkkkMMMMooooddddeeeellll((((3333xxxx))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      VkModel - An abstract class that supports Model-View-Controller style
  10.      applications
  11.  
  12. IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM
  13.      VkCallbackObject
  14.  
  15. HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
  16.      #include <Vk/VkModel.h>
  17.  
  18. PPPPUUUUBBBBLLLLIIIICCCC PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLL SSSSUUUUMMMMMMMMAAAARRRRYYYY
  19.    DDDDeeeessssttttrrrruuuuccccttttoooorrrr
  20.            virtual void ~VkModel(void);
  21.  
  22.  
  23. PPPPRRRROOOOTTTTEEEECCCCTTTTEEEEDDDD PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLL SSSSUUUUMMMMMMMMAAAARRRRYYYY
  24.    CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrr
  25.            VkModel(void);
  26.  
  27.    NNNNoooottttiiiiffffyyyyiiiinnnngggg VVVViiiieeeewwwwssss ooooffff CCCChhhhaaaannnnggggeeeessss
  28.            void updateViews(void *data);
  29.  
  30.  
  31. CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  32.      The VkModel class is a very simple abstract class that supports
  33.      applications that want to use the Model-View-Controller (MVC)
  34.      architecture. The VkModel class is intended to be subclassed, and the
  35.      subclass provides the data members and any additional functions required
  36.      to implement the model. ViewKit components can be used as both "views"
  37.      and "controllers". View components can arrange to be notified of changes
  38.      to the model by registering a member function with the
  39.      VkModel::updateCallback list. Callbacks on this list are invoked when a
  40.      subclass of VkModel calls _u_p_d_a_t_e_V_i_e_w_s(). This method is just a convenient
  41.      way to invoke the functions on the updateCallback list. Components used
  42.      as "controllers" are expected to send messages to subclasses of VkModel
  43.      to alter the state of the model. This protocol must be worked out between
  44.      the VkModel subclass and the controller components.
  45.  
  46. FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
  47.    uuuuppppddddaaaatttteeeeVVVViiiieeeewwwwssss(((())))
  48.            void updateViews(void * data);
  49.  
  50.  
  51.           Calls all member functions on the updateCallback list, passing the
  52.           provided data as the callData.
  53.  
  54.    VVVVkkkkMMMMooooddddeeeellll(((())))
  55.            VkModel(void);
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. VVVVkkkkMMMMooooddddeeeellll((((3333xxxx))))                                                        VVVVkkkkMMMMooooddddeeeellll((((3333xxxx))))
  71.  
  72.  
  73.  
  74.           Initialize a VkModel class.
  75.  
  76.    ~~~~VVVVkkkkMMMMooooddddeeeellll(((())))
  77.            virtual void ~VkModel(void);
  78.  
  79.  
  80.           Empty function.
  81.  
  82. DDDDAAAATTTTAAAA MMMMEEEEMMMMBBBBEEEERRRR DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
  83.    uuuuppppddddaaaatttteeeeCCCCaaaallllllllbbbbaaaacccckkkk
  84.            static const const char* updateCallback;
  85.  
  86.  
  87.           Other classes that wish to be notified when the internal state of a
  88.           VkModel subclass has changed should register a member function with
  89.           this callback list.
  90.  
  91. IIIINNNNHHHHEEEERRRRIIIITTTTEEEEDDDD MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNNSSSS
  92.    IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkCCCCaaaallllllllbbbbaaaacccckkkkOOOObbbbjjjjeeeecccctttt
  93.           callCallbacks(), addCallback(),  removeCallback(),
  94.           removeAllCallbacks()
  95.  
  96.  
  97. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  98.      VkCallbackObject
  99.      _V_i_e_w_K_i_t _P_r_o_g_r_a_m_m_e_r'_s _G_u_i_d_e
  100.      _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m, DEC Press, Bob Sheifler and Jim Gettys
  101.      _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m _T_o_o_l_k_i_t, DEC Press, Paul Asente and Ralph Swick
  102.      _T_h_e _O_S_F/_M_o_t_i_f _P_r_o_g_r_a_m_m_e_r_s _R_e_f_e_r_e_n_c_e, Prentice Hall, OSF
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.